//
//  Bullet.h
//  FrameWork
//
//  Created by Eagle on 5/26/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Enemy.h"
#import "Parameter.h"

@interface Bullet : CCSprite {
	
	//种类
	int _type;
	
	//攻击力
	float _attack;
	
	//减速
	float _slowdown;
	
	//减速时间
	int _slowFrame;
	
	//角度
	float _angle;
	
	//范围
	int _range;
	
	//状态
	int _status;
	
	//几针后起效
	int _frame;
	
	
	//每桢偏移
	float _dx;
	float _dy;
	
	
	
	
	//目标
	Enemy* _target;
	
	//起点
	CGPoint _start;
	
	//终点
	CGPoint _end;
	
	
	
}
@property (nonatomic, assign) int type;
@property (nonatomic, assign) float attack;
@property (nonatomic, assign) float slowdown;
@property (nonatomic, assign) int slowFrame;
@property (nonatomic, assign) float angle;
@property (nonatomic, assign) int range;
@property (nonatomic, assign) int frame;
@property (nonatomic, assign) int status;

@property (nonatomic, assign) float dx;
@property (nonatomic, assign) float dy;


@property (nonatomic, retain) Enemy* target;
@property (nonatomic, assign) CGPoint start;
@property (nonatomic, assign) CGPoint end;


+(id) bulletByType:(int)type level:(int)level;


@end

